package com.njtech.pet.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lxj
 * Date:2020-03-09 10:54
 * Description:消息类
 */
public class Message implements Serializable {
    public Integer id;
    public Date createDate;
    public User sender;
    public User receiver;
    public String message;
    public String state;
    public String type;

    public Message() {
    }

    public Message(Integer id, Date createDate, User sender, User receiver, String message, String state, String type) {
        this.id = id;
        this.createDate = createDate;
        this.sender = sender;
        this.receiver = receiver;
        this.message = message;
        this.state = state;
        this.type = type;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", createDate=" + createDate +
                ", sender=" + sender +
                ", receiver=" + receiver +
                ", message='" + message + '\'' +
                ", state='" + state + '\'' +
                ", type='" + type + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public User getSender() {
        return sender;
    }

    public void setSender(User sender) {
        this.sender = sender;
    }

    public User getReceiver() {
        return receiver;
    }

    public void setReceiver(User receiver) {
        this.receiver = receiver;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
